#-------------------------------------------------------------------------------
# Name:        course_view
# Description:
#              "Course List" window title
#              student button list (Home, Search, window name)
#              two courses as frames:
#                  Course name label
#                  Test/Number of Questions/Test Due Date/Test Written Date/Mark table with scrollbar
#              View Course button -> Student test view
#-------------------------------------------------------------------------------
#!/usr/bin/env python
from . import top_buttons_frame

def create():
    screenmanager.root.title("Course View")
    courseViewFrame = tk.Frame(screenmanager.root)

    buttonHeader = top_buttons_frame.create(courseViewFrame)
    buttonHeader.pack()

    course1Label = tk.Label(courseViewFrame, text="Course 1").pack()
    course1View = tk.Button(
                courseViewFrame,
                text="View Course",
                command=screenmanager.switch_to_student_test_view).pack()

    course2Label = tk.Label(courseViewFrame, text="Course 2").pack()
    course2View = tk.Button(
                courseViewFrame,
                text="View Course",
                command=screenmanager.switch_to_student_test_view).pack()

    courseViewFrame.pack()

    return courseViewFrame